<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        添加栋数
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../css/main.css" media="all">
    <%--    <script type="text/javascript" src="../../lib/loading/okLoading.js"></script>--%>
    <style>
        .imgs{display: none;}
    </style>

</head>
<body>
<div class="x-body">
    <form class="layui-form layui-form-pane" action="buildingadd2.do" method="post" id="add">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <div class="layui-tab-content" >
                <div class="layui-tab-item layui-show">
                    <input type="hidden" name="id" value="${village.id}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class='x-red'>*</span>所属小区
                        </label>
                        <%--                        <div class="layui-input-block">--%>
                        <%--                            <select name="community_id" id="community_id">--%>
                        <%--                                <option value="0" >请选择</option>--%>
                        <%--                                <c:forEach items="${villages}" var="li">--%>
                        <%--                                <option value="${li.id}" >${li.name}</option>--%>
                        <%--                                </c:forEach>--%>
                        <%--                            </select>--%>
                        <div class="layui-input-block">
                            <input type="text" name="name" autocomplete="off" placeholder="请输入名字"
                                   class="layui-input" required="" lay-verify="required" value="${village.name}">
                        </div>

                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class='x-red'>*</span>楼盘栋数
                    </label>
                    <div class="layui-input-block">
                        <input type="text" name="blockCount" autocomplete="off" placeholder="请输入数字"
                               class="layui-input" required="" lay-verify="required" value="${village.blockCount}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class='x-red'>*</span>小区位置
                    </label>
                    <div class="layui-input-block">
                        <input type="text" name="address" autocomplete="off" placeholder="请输入"
                               class="layui-input" required="" lay-verify="required" value="${village.address}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">
                        <span class='x-red'>*</span>总户数
                    </label>
                    <div class="layui-input-block">
                        <input type="text" name="roomCount" autocomplete="off" placeholder="请输入数字"
                               class="layui-input" required="number" lay-verify="number" value="${village.roomCount}">
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span class='x-red'>*</span>创建时间
                        </label>
                        <div class="layui-input-block">
                            <input type="text" name="times" autocomplete="off" placeholder="请输入"
                                   class="layui-input" required="" lay-verify="required" value="${time}">
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                <span class='x-red'>*</span>开发商名称
                            </label>
                            <div class="layui-input-block">
                                <input type="text" name="buildCompany" autocomplete="off" placeholder="请输入"
                                       class="layui-input" required="number" lay-verify="number" value="${village.buildCompany}">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">
                                <span class='x-red'>*</span>描述
                            </label>
                            <div class="layui-input-block">
<%--                                <textarea placeholder="请输入内容" name="describes" value="${village.describes}" class="layui-textarea"></textarea>--%>
                                <input type="text" name="describes" autocomplete="off" placeholder="请输入"
                                       class="layui-input" required="number" lay-verify="number" value="${village.describes}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button class="layui-btn" type="submit" lay-filter="add" lay-submit="" onclick="dianji()">
                                保存
                            </button>
                        </div>
                        <div style="height:100px;"></div>
                    </div>

                </div>

            </div>
        </div>
    </form>
</div>
<script src="../../lib/layui/layui.js" charset="utf-8"></script>
<script src="../../js/x-layui.js" charset="utf-8"></script>
</body>
</html>
